package com.youlu.campus.entity.domain;

import com.youlu.campus.entity.OrderInfo;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;

@Getter
@Setter
public class RefundDomain implements Serializable {
    /**
     * 订单ID
     */
    private String id;
    /**
     * 是否可退款
     */
    @Transient
    private Boolean canRefund = Boolean.FALSE;
    /**
     * 退款说明
     */
    private String refundDesc;
    /**
     * 无法退款说明
     */
    private String notRefundDesc;
    /**
     * 退款理由
     */
    private String refundComment;
    /**
     * 订单号
     */
    private String orderNo;
    /**
     * 订单总金额
     */
    private Integer totalFee;
    /**
     * 退款金额
     */
    private Integer refundFee;
    /**
     * 邮费
     */
    private Integer expressFee;
    /**
     * 支付宝账户
     */
    private String alipayAccount;
    /**
     * 退款申请人类型platform:平台,visitor
     */
    private String refundApplyUserType="platform";
    /**
     *  订单信息
     */
    private OrderInfo orderInfo;
    /**
     * 退款状态码,1:可退款,2:非法用户,3:不可退款
     */
    private Integer refundCode=1;
    /**
     * 退款申请平台
     */
    private String refundApplyPlatform;
    /**
     * 退款申请AppId
     */
    private String refundApplyAppId;
    /**
     * 用户ID
     */
    private String userId;
}
